CREATE PROCEDURE coreWFTasksGetSystemTasksExpired
AS

SELECT * FROM WFTasks WHERE ForSystem=1 AND ForSystemExecDT<GETDATE();
